package com.tianhui.consignortwofei.api;


import com.fgs.common.CommonResponse;
import com.fgs.common.entity.CommonDataListInfo;
import com.tianhui.consignortwofei.mvp.model.enty.message.MessageInfo;
import com.tianhui.consignortwofei.mvp.model.enty.message.MessageQualityInfo;

import java.util.List;
import java.util.Map;

import io.reactivex.Observable;
import retrofit2.http.GET;
import retrofit2.http.POST;
import retrofit2.http.QueryMap;

/**
 * api service
 */
public interface MessageApiService {


    //消息列表
    @GET("smc/sms/list")
    Observable<CommonResponse<CommonDataListInfo<MessageInfo>>> messageList(@QueryMap Map<String, String> map);

    //读消息
    @POST("smc/sms/readSms")
    Observable<CommonResponse> readMessage(@QueryMap Map<String, String> map);

    //消息数量
    @GET("smc/sms/smsTypeTotal")
    Observable<CommonResponse<List<MessageQualityInfo>>> messageQuality();

    //批量移除消息
    @POST("smc/sms/deletesSms")
    Observable<CommonResponse> removeMessage(@QueryMap Map<String, String> map);



    //消息数量
    @GET("smc/areachina/listByJson")
    Observable<String> getShengShi();


}


